package com.wll.store.user.mapper;

import com.wll.store.user.dto.UserRole;
import com.wll.store.user.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author sdx2009
 * @since 2022-09-04
 */
@Repository
public interface UserMapper extends BaseMapper<User> {
    UserRole selectUserRoleByUserId(Integer userId);

    boolean addRoleWithAdmin(Integer userId);
}
